<?php
namespace app\index\controller;
use think\Controller;
use think\Session;
/**
*  
*/
class BaseController extends Controller
{
	
	public function checkIndex()
	{
		if (!Session::has('userinfo')) {
			// return view('/index/index/login');
            $this->redirect(url('/index/index/login'));
        }elseif (Session::get('type')!=1){
            $this->redirect(url('/index/index/login'));
        }
	}
}